tool_operate: Moved initial config setup into new init_config() function