Changed settings to be variables