Built 340 stored 22 years suggestions

Alright guys, how do you get the cam gear and intermediate shaft out of the engine? I took a coat hanger and put a hook on the end of it and I got the gear lifted up to the opening, but I couldn’t pull it through because the gear is too big with the wire over the end of it. So how do you do it? A big magnet?