Added some useful type definitions.