Added code to get screen height and width.