Removed packet count increase from inside methods, so that methods could be exported.
<TODO> Use libraries instead of internal methods.