APT: Added stubbed ReceiveParameter and various cleanups.

APT: More cleanups.