Added hash generation.