Refactored FileScanner rule to be less verbose, and to use a Rule Element