Modified get_environment to provide multiple fields.