Working towards getting timeouts working. Just discovered that a variable in the port struct has been made redundant due to the sliding window.