Serialize trains