Add boolean to reset PF at end