Fixed scripts a bit