Started implementing checkLib() function.