ReceivePacket function

forgot return statement