Made --quiet option work properly