Added transformed pgrange handling and testing