Finished schema conversion code.