Added some useful map calcuations