Changing wrongly set sqrt functions to sqrts functions. The first one takes longer.