Changed getThreshold return value from double to String