Rename registeredPointer to ptrType