I think you could probably just use `attr_accessor :threshold` here.