Added support for type hints.