Inclusion Criteria:  1) Age ≥18, 2) Scheduled to undergo unilateral total knee or hip arthroplasty  Exclusion Criteria:  1) Cognitive impairment preventing completion of study procedures. 2) Current cancer diagnosis, 3) Contralateral knee or hip replaced in the previous 3 months, 4) Intent to have contralateral knee or hip replaced or other, additional surgical procedure during the study period, 5) Intent to add new pain treatments during the study period (except for what is part of the study), 6) Other unstable illness judged by medical staff to interfere with study treatment.