Large addition to the events system, to add collision detection.