Added getScreenSize function.