Changed to take desired time