Added EventAdapter class.