Make config file a parameter.
Allow kwargs in main function as extra params.