Small changes

Made sure units are idle before adding to a group.