Corrected so the values for hosts with spaces in their names are correctly proceeded. And escaped print for verification function.
First commit.
File modified for our env.