Added stepReverseSign function