Updated to reflect dl API changes.