Added PIR code to run with pir info