Update to improve flow - however, need to make the output in the form of UTF-8 as the webpage fails if chars above 127 are sent.