Added deleters for smart pointers