Added sliding window class and plotting.