Added Garkin's serialization routines