Clock set up and mode choose.