Debug functions removed
Binary serialization fixed