Automatically initialize units