Hook into lifecycle to update value.