Formatting, using log to display errors