Implemented packet capturing