Added support to print the generated first set, though it is not working