Updated to write binaries