Replaced static document includes with a dynamic array