Cleaned up the creation of rsets, added nmem