Add filterResults method for GS >= 3.9 (fixes #8).