Optimized with paths