A bit more error-proof in case an invalid message is sent our way