CSettings module optimized and refactored.