Pass index as an int