Renamed data to dataframe in some functions.