Window thread implemented.