Got levels working by using ranges