Added screen resolution check