Modified create_binary to allow dynamic creation of different size binary files.