Added "autostart" feature.