Refactor 'add binary'.