First working version with datascript