Modified IO streams and added basic packets