Added support for choosing classes when multiple with the same name is present