Change receivedMessage method to static
Should probably use this method instead for future proofing purposes