Switched to smart pointers.