Adds some logging statements