Printing debug messages to page for testing