Use time.map instead of making a range