Clean up a variadic function
Implement function support and update examples accordingly