Changed Math.sqrt to Math.Sqrt