Added framework for multiple levels