Add byResults and byPage options

Signed-off-by: Suhayb El Wardany <me@suw.me>