Putting up the first event function