Tick handler. Moved Most things to it.