Update levels code and the associated tests.
Update the loggger and tests .