Event handlers for Queue.