Use the vararg syntax rather than building an array.