Reverted back to generate qeury file, as file can be added via web interface, and adding nodes through http request takes ages.