Refactoring, tx packets [not working]