Moved oWindow to its own file