Optimized the alternate way.