Parse if stats and accept dirs in main