Moving configuration to config file.
Avoids changing code only to change config.
Refactoring functions