Added serialisation to debt builder