Check types and files before adding location