Tweaked time constant. Added hash generation routine