Moved code to sub process
Better variable name
sub get_config