Optimized with Swift Performance (v1.4.2)