Refactors init vars.