Woops, forgot to make the windowing functions static.