Added loops