Added timestamp to main loop.