Arm code for controller