Pass pointers around internally instead of handles.