Add ensure latest functionality.