Moved cmds, quiet and pretty terminal print closer to their use locations.
API update.