Started implementing the receiving logic