Created input PA file name outside the if to ensure consistency