Changed terminology from "prefd" to "tagged" and debugged --keep-all-untagged etc