Corrected to work with IK library