Update deprecated code.