Switch to getopt and introduce -q option for quick tests.