Started work on type definitions.