Moved appconfig from class to module and made related changes.