Quote procedure updated to use smart pointers.
Set procedure uses smart pointers.