Script to check timestamps