Use int for Time type instead of long