Added new directive that helps detect the window size. Needs some work.