Move the print message AFTER the putInSet is finished