Changed packet system

Changed the packet system to a more recommended and more reliable
Optimized imports