Map loading almost done, just needs some debugging.