Currently the material parameters are stored in a big if ... else if ... else. This isn't very nice and can't be easily extended.
if ... else if ... else