Removed some unnecessary functions, enabled frame counting using frame header, and allowed reuse of server port