Enhance functionality, which enable it to scan and count file.