Changed input to time