Started on set generation code