They were dealing with multiple problems, and may have been in severe turbulence while deviating around/thru thunderstorm cells, too. Dark and stormy night, with automation malfunctions. Their workload was high and the CA was back taking a rest. Tragic outcome.