Start of library rebase code.
Library rebasing. First initial version.