Testing some code for location retrieval