Finish first version of the control structure