Update PIRFunctions.h