Location model working