Rewrote OwnPtr because license. All copyleft now gone