Updated to work as a module. New configuration file approach experiment