Changed serialization format, added new functionalities, added latency test functions at handler