Switched profiles to smart pointers.