Use long instead of int for timestamps internally