Updated buildpack to use a library of functions (#2)