Put scanning in a subprocess