Added support for streaming histogram generation