Add support for custom queries and multiple runs.

Also, fix errors about fontface and media selectors