Adds additional debug logging