Update for acting as a library.