What exactly is the problem you are facing with this script?