Autorun functionality added (Matevz)