Added packet crafting and sending to the client