Confusion over the variable name for number of devices was passing a bogus value which likely was causing the zero sized binary issue.