Added [] syntax to input collection
Serial Monitor now prints index