Added repetition in random order. Added save state.