Added functions to help control the arm.