Switched to using shared and unique ptr