Initial plumbing for legend stuff