Added a LOOP for importing host variables.