Add new check in WaitforReceipt function.