Making the event handler instance-specific.