Sorry, but the only thought I have this late at night is "use meaningful stage variable names". How is anyone who comes after you supposed to follow calculations involving StageVar, StageVar1 and StageVar2?
-craig
"You can never have too many knives" -- Logan Nine Fingers