Added additional screen and window functions to retrieve dimensions.