Added CapturePointer and ReleasePointer methods