Add some basic debug logging