Mid refactor for global parameters