Handle when timestamp is not a valid timestamp. Still needs a test.