Adding correct rotations down the IK chain

You would have thought this would have been included in the Two Bone IK/FABRIK box? Adding rotations afterwards messes up the IK chain.