Detect variable