Implemented initial threshold computation