Refactored some code
More refactoring.
SYSV hash works with 64 bit