Fix time update (apperently an app can only register one tick handler). Improved time_update code.