Migrating the logic flow to a class and reading in the config params as a dict.