This Tool reverses playback direction. I believe to do so it looks at when playback line increases and then deducts 2 from it, to move back a line rather than forwards. Maybe you can find what you need from within its code. (Not actually delved into it myself, only going on description.)