ED function added.
(Problems with ED S3 class warning)