Plugin system redone - now passes useful info to SMART plugins.