Added methods to update labels if threshold conditions are not satisfied.
Fixed typo in code.