Completed data frame function