Added transactionquery + auto clean up of the empty nodes before making a request.