Change unless statement to until when creating unique code