Replace hardcoded 'l' with config constant LOC, use $file variable