Added support for return data in plugins