Removed magic number of threshold ammount