Spacing issues causing syntax errors
Some of the code has small spacing issues.
For example, Log Requesting NSD info results in an error Unknown keyword: Log Requesting NSD info as there needs to be an extra space between the Log command and subsequent arguments.