First version of binary script