Added some url building, labels and error message outputs.