Fixed errors and adjusted the window size.