Finished first version of dataprovider.