Added function to read data frames