PAC analysis code from MBP server.