Adding logic to properly set dof values based on arm indices