Add checks to see if markup has already been inserted