Reformating generate_sequences function