Implement visibility matrix for tool visibilities.