Updating hash tree code