Changed index typing to machine precision.