Add functions for the xmodem protocol.