Added context method to add threshold context by threshold identifier