Extracted find query file process.
Extracted query process.
Refactoring.