Optimization - use .clone() instead of creating new elements.