Started implementing the receiver logic