Adds some logging