Adding the ability to dump the environment state to YAML