Time setup

Allow configuration of preparation and end time