Added code finding stable regions over time