Implements lib loading