Adding a check for the lib in the begining of the script