added optional arguments for --threshold_dbs , --offset_result and --offset_expected