Fixed script stuff