The pilot study has two aims. The first is to refine a novel intervention using a combination of a smart phone application with best practice psychotherapy for men who have presented to hospital with intentional self-harm. The primary outcome will be the change from baseline in scores on a depression rating scale the PHQ-9 at six weeks. The second aim is to test acceptability. The investigators will ask clinicians and patients about the acceptability of the intervention and the acceptability of using routine data sources as outcome measures. This will inform methods of recruitment for the larger cluster randomized controlled trial. We will also create a treatment manual for problem solving therapy that incorporates the use of a smart phone application.