Updated sentment code