Re: 89 xr4
Is the engine in basically good shape, as in good compression?
Carb linkage synchronization is critical, as in all the valves begin to open at exactly the same time. When you're checking that, Allow a slight gap between the throttle pick up and the cam, then re-set the idle timing (middle screw) for good idle. Sometimes they like a little timing advance before throttle.
If the engine is in good shape, disconnect the advance/idle stabilizer module and retime max timing for about 21?, at least for a test run. The module could be flaky.
'nother item to check is that the exhaust relief ports are actually putting as they should. Plugged up with carbon will give you too much back pressure at 0 boat speed.
hope it helps
John