Setting up the control flow