Add debug messaging to framework.