Added the checkArm and setArm functions.