Initial code.
Got full tag generation to work.