Changed to double for precision