Whole script working