Added incoming and outgoing stargate states and added code to set them