Add ARGV support for functions