Keeping interrupt handlers short