Add result factory.