Setting up standard events.