Initial work on shifts controller (incomplete).