Added funcitonality to get/set min and max level