Better handling of GaussSeidel loop.