Refactor as plugin and update instructions.