Replaced smart pointers with regular pointers.

Also added 'const' to map name so it could run for me.