Added code to the master and archive library.