PRINCE: Reduce the scope of several variables in PrinceEngine