Added stuff for loading locations from the server.