Starting to make control logic