Added tid twiddling to dynamic merge