Added options: --threshold and --channel along with the appropriate modifications for the parameters