Working 'Auto State' feature