Script now works