Use require-directory instead of custom code