Adding PMT function