Added the new way of instansiating the framework.