Beginning of dynamic page creation. Surprised I figured this out at my drunkeness level