Update PIRFunctions.c