More preparation before switching to event driven controll.