Optimization. Testing revealed checking for spaces first made 4x faster.
Update libraries for NS v5
Update stats for NS API v5