Console logging added.