Added position recognition to run script