First working version of Sigma Basic Script