Now receiveMessage() method takes parameters for rest API calls