Added logic for different send patterns.  Need to do some testing, and I think there is one more todo left