Re-added addSlam and subSlam functions which I accidentally overwrote with the last commit. Whoops.