Can now restore hash state when linking