First kind of working version of localisation