Added support for invoke