Multi-thread window implement (not working, but still commiting for possible future use)