Updates to debug logging