Modifed set creation to use a State object. Set creation works