How do officials prepare for potential problems during elections?