Added a fix for the debugging section of the API script.
Added white text to make output clearer.