Added script for AP protocol.