Added sqrt function.