Moves library functions to package.