Packaged library and improved chaining functionality