Uploaded new script

Optimalizated source code