Added support for interfaces.