Adding shareid and config_file support