Replace tools with the primitive module.