Add preliminary support for windowed analysis

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>