Simplify set_content loop