Added initial support for multilayered levels (unfinished)