Saving and checking the status of the previous event