Added 'function' backend and made AR exmaple use it.