Removed code to acquire screen resolution.