Small fixes.
Added -q switch.