Add ability to load a query from file.