Extract commom functions to paa.c