if you have the time could you take a look at this follow up question?
I think I have another way of detecting montage end