Added Conditions to rewind