Changed time to trange