Initial version of ES decoder