Added getMinimumLevel function