Optimizations to battle code, mine sensing.