Updated script handler.