Adds option for custom result_cls.

Provides the ability to use a custom result cls.