Added sqrt function