Add factorial function.