Fix bug; Print parameters into the output file