Updated valuecheck