I'm no programmer, but isn't it possible to find out present status within the cycle using SendMessage-command (see sdk-folder) and, depending on value returned, increment repeat mode such number of times till the intended status within the cycle is reached?