Settings are now properly used throughout the program.