Change into to long to prevent integer overflow for timestamps