Update to single temp var and add leftward rotation