Adding implementation for handling long events.