Advanced E logic