Successfully passed whole labelNames to function