Slight syntax change

Also added startIndex argument