Move Binary App logic to utils