Temporary fix to calculate the AL level

We need to refactor the AL level checks. The current implementation
is based on old ideas. This is a temporary fix to allow us to test
AL1 and AL2.