Added loops and changed footer