Moving survey parsing to ns. Adding stats.