Started converting tab querying and manipulation