Loop condition changed, only g and xi