Added new tmp write to file for M2
Debug: high k leads to breakdown