Changes a method to an event for a safer implementation