Add full support for window functions