Config file. Refactoring. Tests.