Update depricated code