tool_operate: Moved memory tracking initialisation into tool_main