Implemented autostart feature.