Split up updating so it doesn't time out.