Added code needed to interface with updated emd.