This should be be Math.min() not Math.Min().