Resolved #2. Fixed token problem. Tested with multiple windows.