Preperations for getLocation