Adaptive version from ZTW version