New replacement script