Starting problems-- Subaru Legacy P0335

Huh-- that gives me a nice warm feeling. Score one for OBDII. Science!
Thanks for the tip about the sensor kit-- the crankshaft sensor alone at a generic parts store cost as much as the kit containing two sensors from the Subaru dealership.
I did have to remove the alternator and completely pull the battery but the process stopped short of the timing belt. I’ve tried to get it to fail but so far the problem seems fixed!
Thank you!