Added type annotations.