Use InputIndex enum for dynamic index.