Changed packet size. Stopped using regex where it didn't belong. Improved exception handeling.