Change mode -p to -a.
Add new prefixes.
Fix a couple of r9k errors with mode detection.