Reformat library to pull functions in from global scope.