Setting parameters for windows