Fixed event registration. Before, events were scheduled in reverse; it's correct now.