Added figure repeat script