Thank you so much for the help, but I am still not completely understands how to do it. I have only used WPI for a week. So far I can only make one condition using gcond, and I am not sure how to mix it up with dependency, can you please give me some example, or is there a link that has some good information for me to follow? Thanks again for helping this newbie -John Lau