Code to assist with debugging.