Started making test functions and modified sendtext with the required send loop