Added return values for stat importing and formatting