Added log function to ewd object