Add update-input functions