Made file scanning non-recursive