Implemented scanning files