Added a check to validate the received data.