Better script end support.