Add logic for the receiver