Added sopt functions for Tx and Rx