Reverting to previous events code