And also use 64-bit functions here.