No need to calculate size by calling acf. Optimized by calculating size separately.