Started work on serialize/deserialize functions