Improved timer emulation. There's still work to do.

Improved timer emulation. There's still work to do.