Better solution to settings