Set static variable the right way