Serialize materials