Motions aren't recorded in macro, could that be the problem? Have a look at the source to see what it does exactly.

Kees