Code formatting
Better error handling for emitting data frames