Added support for executing plugin commands.

* Minor cleanup.