Added width, height, windowTime arguments