Implement server events.