Added debugging tools.