Moved events outside the game engine.