Added condition for loading local lib stuff