The rack and pinion system is the best here. Thor uses this method to great effect. I would have the ram directly attached to a toothed bar that meshes with a MOD 3 upwards gear.