Changed output format. Output file is also now binary.