Moving doafter function into timer module.