Adding generic request factory.