What exactly were you doing to cause gimbal lock, and why is this needed?