Trying to make script work