with_process: added timeout arg, better signature.