- Added a bunch of missing type annotations.