Moved settings to environment