Added getPositions() function to DataProvider