Added some auto location updating code. Still needs to be more accurate.