Adding debug utilities.