Added plugin script for automatic loading of mode