Added window functions.