The treatment will be based on a previously developed program, devised to target depression and anxiety in patients with chronic pain. The treatment will consist of a 10-week period where participants would get access to a series of treatment modules, each addressing a separate problem area using CBT techniques. The treatment includes modules addressing depression, anxiety, panic, worry, insomnia, stress, trauma, communication skills, and relaxation. The booster program will be based on the initial treatment, but will shorter, focusing on repetition, strategies for maintenance, and coping with setbacks. The platform used is an existing platform employed by Smärtcentrum at Uppsala university hospital for delivering internet based treatments.