Occupying my mind with complex problems has been my best and most powerful and most reliable defense against my mental illness.