Add some typedefs to reduce type deducing.