Made changes for nicer compatiblity for different aspect ratios