Added -k and -t options.