This function should just take a time.