Add option to use function directly from config

Add option to use function directly from config rather than require it