Cleaned up TFTP code