Adding binary saving functionality