Began writing window init code