Remove casting to int of some vars, causes issues with 32 bit versions of php.