Improved hash determination