New window function and stuff.