Add support for defining types.