Working version: plugin implemented