Closes #216 Add ExecutePendingQueries