Changed threshold creation method