Needs to replace global