Add working basic rate sending function
Refactor sending function name.
compiling warning fixings.