Added the square root function.