Changing ruby version
Using queryformat to make parsing more reliable