Add check for lib