Made it so debugging output can be toggled.