Improved style of code using lowercase functions and here documents.