Add autostart feature (fix #13)