Use unique_ptr and auto to remove some crap.
Use unique_ptr in outlines.