Hinge algorithm changes