Added support for multiple notebooks.