Adding baxter control logic