Minor script work