Added support for specifying custom result transformator.