Added helpers for detecting compact devices.