Add remove method to iterator.