Adapted to ToolboxFile in core.