Merge hash

Address #1016