Renamed clear to clear_index according to others API