Move TimerTask inline to avoid confusing naming.

Otherwise there is 'Timeout' and 'timeout' with different types.