Add method to unmarshal elements