Source code for PAIP