Added some debugging. Add port to separate variable