Optimized Code. Especially For Function 3.
Optimized Code. Especially For Function 3.