Implementation of the group moving done.