Plugin rewritten.