Attempt at PIR, not working :-(