Some changes

Gates are now basically plugins.