Made minor adjustments to account for the framework changes.
Added the new way of instansiating the framework.
Adjusted initialization