Have added auto run example functionality