Added autostart routine