Amended locations code to search deeper for locations not found and if still not found then create location.