Code refactoring. Add server configuration management.