Smart pointer utility added