Add safety on library imports