Adding some library protection.