Removed fflush() from packet completion check, also removed timeStart =
timeEnd since it may be unnecessary