Some logging added.