Further debugging and refactoring PairtreeReader.