Update First_Value() and Last_Value() functions