Modifying for the new specialization implementation
Implement specializing a little differently than previously
Hijacking the app.engine function to first do specialzation