public void run(){
		
		while(true){
			
			//Update the peer's current GPS location. By setting a new location,
			//Peer will update it's velocity - so no need to worry about that.
			agent.getPeer().setLocation(agent.getGeoDevice().getLocation());
			
			//If the service has been shutdown, it should not be started again.
			if(shutdown){
				break;
			}
			
			try {
				sleep(frequency);
			} catch (InterruptedException e) {
				e.printStackTrace();
				return;
			}
			
		}
	}