Renamed mask to indices