Refactored settings framework to be more useful. Integers now works with it.