Cleaned up how main label is generated