Version 0 of event based encoding.