Added the binary conversion code