Trying to solve the queue events problem