Key error for checking timestamp before first use