Added quiet mode. Added rudimentary parameter check.