Update to the new plugins system