Improved performance by avoiding pass one by one.