Added query builder to process query.
Added file writer.