Added autostart procedure.