Implement putRequestMessage function