First pass at full AP mode setup script.