Cleaned up emulator timeour code.