use debugMode? Probably can remove that as an arg to the method, since you can always determine it by looking at mode.