Further optimized 3