Use doubles instead of ints