Serialize, deserialize, gene passing fuction fixed, smaller changes