Adding waitDataTobeSent()