Added procedure for writing out version and legacy code annotations.