Add some settings logic