Pyrolysing the materials