Fixed LO generation, added window