Reading Data for Score Function