Silenced most output unless debug is set to True.