Made hg_interface compatible with fc_module and added optional logging