Fix 64bit limits. Closes #192