Solving the Ptr and BasePtr issue.