Adding logging
added code to convert dataframes