Minor bug fixes related to windowing, and synthetic data.