Use doubles instead of floats