Removed uneeded window events and the delay timers.