Changed the functionLibrary to be an actual library