Working code after refactoring. One word not working properly. Packet overhead's should be removed