Working version of all scripts