Ping every 500ms instead of 5s to decrease the likelihood of NATs forgetting about our connections.
Fix order of calling todos.