How does the automatic assignement work ?