Made unsafe operations more safe, but moving memory corruption problems out of subclasses.