Index takes input