Support -a and -k options.