Add safe handles.
Start copying base implementations.