Inclusion Criteria:  Young adult patients aged 18 - 25 years old, who have Non-malignant chronic pain lasting more than 3 months, with Diagnostic and Statistical Manual of Mental Disorders, Fourth Edition (DSM-IV) criteria for insomnia, English speaking with Access to a mobile phone or a computer with internet access.  Exclusion Criteria:  Patients who require urgent CBT treatment as per their health care provider Patients who have received CBT in the past 3 months Patients participating in other psychological treatments and/or drug trials during the study Patients who have other significant medical conditions- Life threatening (e.g. cancer), neurological conditions (e.g. epilepsy) Patients who have other significant psychiatric conditions-Severe depression or active suicide intent Situations resulting in forced sleep disruption or derangement of sleep schedule such as night shift work > 2 nights per week in the past 3months, pregnancy or breastfeeding. Inability to communicate with health care providers or the research personnel Inability to fill out self-report questionnaires, study materials, or follow instructions.