Lib loader function.