Added multiple level support to the framework