Added missing case, implemented level parameter