Sweeping from the superfluid to the Mott phase in the Bose-Hubbard model.