Code refactoring.
Add configuration by attributes