Switched from bare pointers to shared_ptr for all pointers except of HGE*