Had to make the idealized method threshold key dynamic as well