Reverted to working version of main, edited Receive slightly to remove redundant function body.