Merge pull request #31 from mdevaev/prev-state-2

Saving and checking the status of the previous event