Added attr_accessor for environment