Adds FromFn to work around fn clone issues.