Reformatted and added DeleteIf method