MOVED functionality to events.