Converted cncmix to use Maps, this is much cleaner