Adding refit_module for eventual use with GUI.