Add serial encoding
Add dispatcher event returning
Add main entry point