Changed the way the Dump() method works and added checks to check that the registered environment exists when trying to activate it