Inclusion Criteria:  Patient is to undergo ambulatory total hip arthroplasty or total hip knee arthroplasty. Patient is 18 years or older.  Exclusion Criteria:  Patient is unable to give consent Non-English speaking patients Patients with pre-existing sleep disorders or neurological disorders, including dementia. Patients taking hypnotic drugs or other medication that is known to affect sleep.