Add some saving/loading code for tagged regions