Started adding in threading and changed the major datatype in Gateway to be a queue