Extracted configuration into file.
Fixed configuration loading.