Added more code to the packet
Added packet handler