Combine logic between logging in and dumpuser. Improve AI handling of poison