Added common method for clearing and checking timestamp. Clears timestamp by -1/-1 by default.
Added clearing timestamp in extra places.
Merge pull request #182 from shaitan/master

Added common method for clearing and checking timestamp. Clears timestamp by -1/-1 by default.