WIP: Support offsets and limited win functions