Renamed environment to payloadPairs