Add PTT functions.
Various fixups.