Cleaned up some of the logging code, mainly new lines.