Modified version of Hypatias code/map (mostly just for me to mess around and test things)