Added code for filevisitor.