Use pointers instead of int handles.