Add updating goals functionality.