Redefined plug-in declaration. Added support for method calls