Changed completion flag use to remove race condition in Cedf,Gedf.