Added speed optimization to the framework builder.