Add support for tmp array