Starting to add the logging stuff.