Some preparations for going interrupt-driven.