I should probably add a variable self.threshold = 10 for convenience...