Refactored initialization of EpicWindow