Moving settings to global variable