Using configuration for port
Refactor of configuration loading