Make functions dir lazy-loaded