Updated plugin code.

  Issue #7.