Use $reachedLevel detection for the first content level.
Reformat code.