Optimized a bit.