PMT testing working version