Add getEnvironment to result