Added new double precision version