Add query and update prog options