Add support for optional params in history fetch