Added the library checks function.