tool_operate: Introduced new operate() function
tool_operate: Introduced operate_init() function
tool_operate: Introduced operate_free() function