In reply to Muthamizh:
This is one of the issues. The second one is rst is not rand in the seq_item definition. And then you have to refine your driver with respect to the reset. the Reset function is mot usefula as it is now.