Automatically Detect Configuration