Changed to take vertex input, and properties separately.