WIP. Now debugging valid_time.