A membrane including a polyarylether having amide functionality. The polyarylether having amide functionality includes units from at least one of structure I or structure II: