Started rewriting realtime logic.